

import request from '@/router/axios'
const baseUrl = "/disk/share"
export function allShare() {
  return request({
    url: baseUrl+'/user',
    method: 'post'
  })
}
export function getShare(id) {
  return request({
    url: baseUrl+'/get/'+id,
    method: 'post'
  })
}

export function saveShare(obj) {
  return request({
    url: baseUrl+'/save',
    method: 'post',
    data: obj
  })
}

export function getByPath(path) {
  return request({
    url: baseUrl+'/info/'+path,
    method: 'post',
  })
}
export function getByPathAndPwd(query) {
  return request({
    url: baseUrl+'/path',
    method: 'post',
    params: query
  })
}
export function deleteShareId(query) {
  return request({
    url: baseUrl+'/delete',
    method: 'post',
    params: query
  })
}
